package com.ethink.warehouse.api.info;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 辉辉 2023/2/21 10:15
 */
@Data
public class MateInventoryAdjustLogModeInfo extends MateInventoryAdjustLogInfo {

    @Schema(description = "商品编码")
    private String mateSku;

    @Schema(description = "商品名称")
    private String mateSkuName;

    @Schema(description = "渠道")
    private String saleSubChannel;

    @Schema(description ="枚举 库存类型:1-正品(zp)|2-瑕疵(cc)")
    private Integer inventoryType;

    @Schema(description ="原采购批次")
    private String purchaseCode;

    @Schema(description ="原成本价")
    private BigDecimal costPrice;

    @Schema(description = "原生产批次")
    private String produceCode;

    @Schema(description ="原生产日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date productDate;

    @Schema(description ="原到期日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date expireDate;

    @Schema(description ="调整数量")
    private Integer adjustQty;

    @Schema(description ="调整后采购批次")
    private String afterPurchaseCode;

    @Schema(description = "调整后生产批次")
    private String afterProduceCode;

    @Schema(description ="调整后成本价")
    private BigDecimal afterCostPrice;

    @Schema(description ="差额")
    private BigDecimal diffTotalCost;

    @Schema(description ="调整后生产日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date afterProductDate;

    @Schema(description ="调整后到期日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date afterExpireDate;

}
